{% extends "base.html" %}
{% load static %}


{% block headjs %}

{% endblock %}

{% block content %}


    <div class="container-lg">
        <div class="row-lg">
        <div class="card">
					<div class="card-body">
						<div class="d-lg-flex align-items-center mb-4 gap-3">
							<div class="position-relative">
                                <form class="form-inline my-2 my-lg-0 ml-auto " method="get" action="">
                        <input class="form-control mr-sm-2 form-control ps-5 radius-30" type="search" placeholder="订单号,报名产品,客户名称" aria-label="Search" name="search">
                        <button class="btn btn-outline-success my-2 my-sm-0" type="submit">搜索</button>
                    </form>

                                <span class="position-absolute top-50 product-show translate-middle-y"><i class="bx bx-search"></i></span>
							</div>
<div class="position-relative ml-5">

<form method="get" action="" class="form-inline">
    <!-- 日期时间选择框 -->
    <label for="datetime">选择开始时间:</label>
    <input type="datetime-local" id="datetime" name="datetime" class="form-control mr-2">
    <!-- 提交按钮 -->
    <label for="datetime">选择结束时间:</label>
    <input type="datetime-local" id="datetime" name="datetime" class="form-control">
    <!-- 提交按钮 -->
    <input type="submit" value="提交" class="btn btn-outline-success ml-2" >
</form>
</div>

						</div>
						<div class="table-responsive">
							<table class="table mb-0">
								<thead class="table-light">
									<tr>
										<th>订单号</th>
										<th>下单时间</th>
										<th>下单客户</th>
										<th>订单产品</th>
										<th>订单金额</th>
                                        <th>订单归属</th>
                                        <th>操作</th>
									</tr>
								</thead>
								<tbody>
   {% for mydds in mydd %}
									<tr>
										<td>{{ mydds.ddh }}</td>
										<td>{{ mydds.ddtime }}</td>
										<td>{{ mydds.kehu }}</td>

										<td>
                                        {% for ddcp in mydds.ddchanpin.all %}
                                             {{ ddcp.title }}
                                        {% endfor %}
                                        </td>

                                        <th> {{ mydds.ddjine }} </th>
                                    <th>{{ mydds.dduser.last_name }}{{ mydds.dduser.first_name }}</th>
                                         {%  include 'my_dd_detail.html' %}
									</tr>
  {% endfor %}
								</tbody>
							</table>
						</div>
					</div>
				</div>


            </div>


    </div>



{% endblock %}

{% block footerjs %}


{% endblock %}
